"""

"""
import yaml

from we_com.common.constants import DATAS_PATH


def all_data():
    with open(DATAS_PATH, encoding='utf8') as f:
        datas = yaml.safe_load(f)
    return datas


def get_data(flag):
    datas = all_data().get(flag)
    return datas.get('datas'), datas.get('ids')


if __name__ == '__main__':
    # print(all_data())
    # print(get_data('add_department')[0])
    # print(get_data('add_department')[1])
    # print(get_data('add_member_success')[0])
    # print(get_data('add_member_success')[1])
    print(get_data('add_member_err')[0])
    print(get_data('add_member_err')[1])
